package com.fh.modules.oas.service.impl;

import com.fh.common.web.impl.AbstractServiceImpl;
import com.fh.modules.oas.entity.OasTimesheet;
import com.fh.modules.oas.mapper.OasTimesheetMapper;
import com.fh.modules.oas.service.IOasTimesheetReportService;
import com.fh.modules.oas.vo.TimesheetVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * @Author qiujunda
 * @Date 08/12/2019
 * @Description
 */
@Service
public class OasTimesheetReportServiceImpl extends AbstractServiceImpl<OasTimesheetMapper, OasTimesheet> implements IOasTimesheetReportService {

    @Autowired
    private OasTimesheetMapper oasTimesheetMapper;

    @Override
    public List<HashMap<String,Object>> queryReport(TimesheetVo vo){
        List<HashMap<String, Object>> list= oasTimesheetMapper.reportQuery(vo);
        return list;
    }

    @Override
    public List<HashMap<String,Object>> userMantisReport(TimesheetVo vo){
        List<HashMap<String, Object>> list= oasTimesheetMapper.userMantisReport(vo);
        return list;
    }

    @Override
    public List<HashMap<String, Object>> userMantisWorkloadReport(TimesheetVo vo){
        return oasTimesheetMapper.userMantisWorkloadReport(vo);
    }
}
